import request from '@/utils/request'

export function loginApi(data) {

  //alert('data=' +  JSON.stringify(data) );
  return request({
    //url: '/cgi-bin/admpassword.cgi',
    url: '/cgi-bin/admpassword',
    //url: '/login1',
    method: 'POST',
    data
    //header:{   //lgl
     //'Access-Control-Allow-Origin':'*',  //解决cors头问题  
      //'Content-Type':'application/json'  ,
      //'Content-type': 'application/x-www-form-urlencoded;charset=UTF-8'
    //}
  })
}
